home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
disk
/
ncom23.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1997-04-08
|
4KB
|
73 lines
@echo off
rem
rem ****************************************************************
rem * USAGE: install.bat {drive:\NCOM-dir} {drive:\MS-Windows-dir} *
rem * (EXAMPLE: install.bat c:\ncom c:\windows ) *
rem ****************************************************************
rem
if "%1"=="" goto help
if "%2"=="" goto help
if not exist %1\nul mkdir %1
copy *.* %1
if exist windows\nul goto windows_exist
if not exist %2\vbio.vbx copy vbio.* %2
if not exist %2\cmdialog.vbx copy cmdialog.vbx %2
if not exist %2\mlistbox.vbx copy mlistbox.* %2
if not exist %2\d&dserve.dll copy d&dserve.* %2
if not exist vbrun100.dll goto vbrun_not_exist1
if not exist %2\vbrun100.dll copy vbrun100.dll %2
goto skip1
:vbrun_not_exist1
echo *******************************************************************
echo * Note that VBRUN100.DLL is required in the path or in %2 !!!
echo * Please download from well known places if you do not have it *
echo * (eg. at "ftp.cc.monash.edu.au" in "/pub/win3/util" with user *
echo * name "anonymous")! *
echo *******************************************************************
echo .
:skip1
if not exist %2\ncom.mnu copy ncom.mnu %2
if not exist %2\ncom.dmn copy ncom.dmn %2
goto common
:windows_exist
if not exist %2\vbio.vbx copy windows\vbio.* %2
if not exist %2\cmdialog.vbx copy windows\cmdialog.vbx %2
if not exist %2\mlistbox.vbx copy windows\mlistbox.* %2
if not exist %2\d&dserve.dll copy windows\d&dserve.* %2
if not exist windows\vbrun100.dll goto vbrun_not_exist2
if not exist %2\vbrun100.dll copy windows\vbrun100.dll %2
goto skip2
:vbrun_not_exist2
echo *******************************************************************
echo * Note that VBRUN100.DLL is required in the path or in %2 !!!
echo * Please download from well known places if you do not have it *
echo * (eg. at "ftp.cc.monash.edu.au" in "/pub/win3/util" with user *
echo * name "anonymous")! *
echo *******************************************************************
echo .
:skip2
if not exist %2\ncom.mnu copy windows\ncom.mnu %2
if not exist %2\ncom.dmn copy windows\ncom.dmn %2
:common
echo *******************************************************************
echo * Installation Completed! Please, call %1\NCOM.EXE
echo * through the File Manager or create an Icon in the Program *
echo * Manager. *
echo * *
echo * Read the file INSTALL.TXT for manual installation if there was *
echo * any problem with the installation.
echo * *
echo * This Install Batch is too simple to check versions of the *
echo * Visual Basic Library files in %2. If you have already
echo * got a library file with the same name as the one supplied with *
echo * this software the file is not overwritten. Please check *
echo * manually which library is newer and use the newest version. *
echo *******************************************************************
goto end
:help
echo ****************************************************************
echo * USAGE: install.bat {drive:\NCOM-dir} {drive:\MS-Windows-dir} *
echo * (EXAMPLE: install.bat c:\ncom c:\windows ) *
echo ****************************************************************
:end